package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_card")
public class LocalCard {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "card_uuid")
    private String cardUuid;

    @Column(name = "card_name")
    private String cardName;

    @Column(name = "card_time")
    private String cardTime;

    @Column(name = "card_price")
    private String cardPrice;

    @Column(name = "version")
    private Double version;

    public String getCardUuid() {
        return cardUuid;
    }

    public void setCardUuid(String cardUuid) {
        this.cardUuid = cardUuid == null ? null : cardUuid.trim();
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName == null ? null : cardName.trim();
    }

    public String getCardTime() {
        return cardTime;
    }

    public void setCardTime(String cardTime) {
        this.cardTime = cardTime == null ? null : cardTime.trim();
    }

    public String getCardPrice() {
        return cardPrice;
    }

    public void setCardPrice(String cardPrice) {
        this.cardPrice = cardPrice == null ? null : cardPrice.trim();
    }

    public Double getVersion() {
        return version;
    }

    public void setVersion(Double version) {
        this.version = version;
    }
}